import request from '@/utils/request'

export const login = (data)=>{
  return request({
    method:'post',
    url:"/app/v1_0/authorizations",
    data
  })
}

// 获取个人信息
export const getMy = ()=>{
  return request({
    method:'get',
    url:'/app/v1_0/user'
  })
}

// 用户频道列表
export const userChannels = ()=>{
  return request({
    method:'get',
    url:'/app/v1_0/user/channels'
  })
}

// 获取频道文章列表
export const articles = (params)=>{
  return request({
    method:'get',
    url:'/app/v1_1/articles',
    params
  })
}